

#ifndef _UCUTMIGR_H
#define _UCUTMIGR_H

#include "zacutmem.h"

#pragma pack (push, 8)

inline Ucad::ErrorStatus newBuffer(char *&pOutput, size_t size)
{
    return ::ucutNewBuffer(pOutput, size);
}

inline Ucad::ErrorStatus newString(const ZTCHAR* pInput, ZTCHAR*& pOutput)
{
    return ::ucutNewString(pInput, pOutput);
}

inline Ucad::ErrorStatus newString(ZTCHAR*& pOutput, int nNumChars)
{
    return ::ucutNewString(pOutput, nNumChars);
}

inline Ucad::ErrorStatus updString(const ZTCHAR* pInput, ZTCHAR*& pOutput)
{
    return ::ucutUpdString(pInput, pOutput);
}

inline void delString(ZTCHAR*& pString)
{
    ::ucutDelString(pString);
}

inline void delBuffer(char*& pString)
{
    ::ucutDelString(pString);
}

#pragma pack (pop)
#endif 
